
'''
print(bool(0))       #False
print(bool(1))       #True
print(bool(-5))      #True
print(bool(0.0))     #False
print(bool(""))      #False
print(bool(" "))     #True
print(bool("abc"))   #True
print(bool([]))      #False
print(bool([1,2]))   #True
print(bool(None))    #False

x="1101"
dec=int(x,2)
print(dec)          #13


x="17"
dec=int(x,8)
print(dec)         #15

x = '1a2c'
dec=int(x,16)
print(dec)        #6700

x=str("45.6")
print(x)
print(type(x))
float_x=float(x)
print(float_x)
print(type(float_x))
print(float_x+1)     #第一题

print(bool(""))    #F
print(bool("0"))   #T
print(bool([]))    #F
print(bool(None))  #F
print(bool(1))     #T    #第二题


x=("hello","good","yes")
print(x)

m,n=3,6
print(m)
print(n)           #拆包

a=b=c=d="hello"
print(a)
print(b)
print(c)
print(d)           #连续赋值

greeting="Hello"
repeated=greeting * 3
print(repeated)

result=5+3.2
print(result)

score=int(input("请输入分数："))
if  score < 60 and score > 0:
    grade="不及格"
elif score<80 and score > 60:
    grade="及格"
elif score<90 and score > 80:
    grade="良好"
elif score<=100 and score>90:
    grade="优秀"
else:
    grade="分数错误，请重新输入"
print(f"分数是{score},成绩是{grade}")

age=int(input("请输入年龄："))
if age<0:
    print("输入错误")
elif age>0 and age<5:
    print("婴幼儿")
elif age>6 and age<11:
    print("儿童")
elif age>12 and age<17:
    print("青少年")
elif age>18 and age<59:
    print("成年人")
elif age>60 and age<200:
    print("老年人")
else :
    print("输入错误")

sum_all=0
num=1
while num<=100:
    sum_all+=num
    num+=1
    print(f"将1-100加在一起的总和是{sum_all}")
    num=0
while num <= 10:
      print(num)
      num +=1

# sum_all=0
# num=1
# for num in range(1,101):
#     sum_all+=num
# print(sum_all)

# sum_all=0
# num=0
# for num in range(0,101,2):
#      print(num)
#      sum_all+=num
# print(sum_all)
sum_all=0
num=1
for num in range(1,101,2):
    print(num)
    sum_all+=num
print(sum_all)


#第一题
rows=int(input("请输入数字："))
cols=int(input("请输入数字："))
for i in range(rows):
    print("*"*cols)
'''

#a=int(input("请输入一个整数："))
#a=0
#while  1:
#    write=int(input("请输入数字："))
#    if write==a:
#        break